<html>
<script src="jQuery/jquery1.7.1.js"></script>

<script>
$(document).ready(function(){

    $.when( $.ajax({
    	url: "https://api.ai.qq.com/fcgi-bin/nlp/nlp_wordseg",
    	type: "POST",
    	beforeSend: function (xhr) {
    		 // xhr.setRequestHeader("Authorization", "Basic V0FOR0pFUjpTYXB0ZXN0MQ==" );
		}
    })).then(function(data, textStatus, jqXHR){
     	alert( jqXHR.status ); // alerts 200
    });
	*/

	var request = new XMLHttpRequest();
	request.open("POST", c4c,false);
	request.send(formData);
	alert("response: " + request.responseText);
});

</script>
</html>